/**
 * @Author: 刘严泽
 * @Date: 2019/11/6
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获取调度单列表
export const queryAllotBill = params => axios.get(`${SERVER.VEHICLE}/allot/maintainVechicleAllotBill/queryAllotBill`, { params });

// 查询调拨单信息
export const queryAllotBillDetail = params => axios.get(`${SERVER.VEHICLE}/allot/maintainVechicleAllotBill/queryAllotBillDetail`, { params });

// 删除调拨单
export const deleteAllotBill = params => axios.post(`${SERVER.VEHICLE}/allot/maintainVechicleAllotBill/deleteAllotBill`, params);

// 保存调拨单
export const saveAllotBill = params => axios.post(`${SERVER.VEHICLE}/allot/maintainVechicleAllotBill/saveAllotBill`, params);

// 获取仓库信息
export const getStorage = params => axios.get(`${SERVER.VEHICLE}/check/generateCheckBill/getStorage`, { params });

// 获取所选中发出仓库下的车辆信息
export const queryStockByFromStorage = params => axios.get(`${SERVER.VEHICLE}/allot/maintainVechicleAllotBill/queryStockByFromStorage`, { params });

